package com.anuprayog.convertunits;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
    
    public void openLength(View view) {
        Intent intent = new Intent(this, LengthActivity.class);
        startActivity(intent);
    }
    
    public void openMass(View view) {
        Intent intent = new Intent(this, MassActivity.class);
        startActivity(intent);
    }
    
    public void openArea(View view) {
        Intent intent = new Intent(this, AreaActivity.class);
        startActivity(intent);
    }
    
    public void openVolume(View view) {
        Intent intent = new Intent(this, VolumeActivity.class);
        startActivity(intent);
    }
    
    public void openTime(View view) {
        Intent intent = new Intent(this, TimeActivity.class);
        startActivity(intent);
    }
    
    public void openVelocity(View view) {
        Intent intent = new Intent(this, VelocityActivity.class);
        startActivity(intent);
    }
    
    public void openAcceleration(View view) {
        Intent intent = new Intent(this, AccelerationActivity.class);
        startActivity(intent);
    }
    
    public void openForce(View view) {
        Intent intent = new Intent(this, ForceActivity.class);
        startActivity(intent);
    }
    
    public void openPressure(View view) {
        Intent intent = new Intent(this, PressureActivity.class);
        startActivity(intent);
    }
    
    public void openEnergy(View view) {
        Intent intent = new Intent(this, EnergyActivity.class);
        startActivity(intent);
    }
    
    public void openPower(View view) {
        Intent intent = new Intent(this, PowerActivity.class);
        startActivity(intent);
    }
    
    public void openAngle(View view) {
        Intent intent = new Intent(this, AngleActivity.class);
        startActivity(intent);
    }
    
    public void openTemperature(View view) {
        Intent intent = new Intent(this, TemperatureActivity.class);
        startActivity(intent);
    }
    
    public void openDataStorage(View view) {
        Intent intent = new Intent(this, DataStorageActivity.class);
        startActivity(intent);
    }
    
    public void openNumberBases(View view) {
        Intent intent = new Intent(this, NumberBaseActivity.class);
        startActivity(intent);
    }
    
}
